/**
 *@描述: 共有路由，不需要登录
 *@date:2022/3/29
 *@author:heli
 */
import React, {lazy} from 'react';
import {MetaRule, RouteObjectRule} from "../../react-router-dom6-guard";

interface MetaRuleDefine extends MetaRule{
    auth?: false
}

interface RouterRule extends RouteObjectRule {
    meta: MetaRuleDefine
}

const PublicRouters: RouterRule[] = [
    {
        path: 'login',
        meta: {
            title: '登录',
        },
        page: () => import("../../pages/login"),
    },
    {
        path: 'register',
        meta: {
            title: '注册',
        },
        page: () => import("../../pages/register"),
    },
];
export default PublicRouters;
